<?php

/**
 * Created by PhpStorm.
 * User: leo
 * Date: 16/4/25
 * Time: 下午4:00
 * Describe:
 */
namespace liketry\components;

use yii\base\Widget;
use services\models\IndexQuery;

class PageTop extends Widget
{
    public function run()
    {
        $indexQuery = new IndexQuery();
        //热门搜索
        $search_word = $indexQuery->getSearchWord();
        //LOGO右侧广告
        $logo_adv = $indexQuery->getLogoAdv();
        //顶部拉幕广告
        $ad_uid = Array(17);
        $liketry_top_ad = $indexQuery->getIndexAd($ad_uid);
        return $this->render('@liketry/views/layouts/search_word', 
                                [
                                    'words' => $search_word, 
                                    'logo_adv' => $logo_adv, 
                                    'liketry_top_ad' => $liketry_top_ad
                                ]);

    }

}